#include <stdio.h>
#include <string.h>

int main(void)
{
    int line_count = 0;  // initialize the line count
    int tab_count = 0;   // initialize the tab count
    int space_count = 0; // initialize the space count

    char c;                        // initialize the character
    while ((c = getchar()) != EOF) // read a character at a time
    {
        if (c == '\n') // if the character is a newline, increment the line count
        {
            line_count++;
        }
        else if (c == '\t') // if the character is a tab, increment the tab count
        {
            tab_count++;
        }
        else if (c == ' ') // if the character is a space, increment the space count
        {
            space_count++;
        }
    }

    printf("Lines: %d\nTabs: %d\nSpaces: %d\n", line_count, tab_count, space_count); // print the line count, tab count, and space count

    return 0;
}
